package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author： ccm
 * time： 2017/6/5.
 * description：
 */

public class FlightListBean {


    /**
     * code : 2000
     * data : {"airports":[{"sid":"5d2e8301282545c08e157ef2b428f241","id":"5d2e8301282545c08e157ef2b428f241","city":"上海","name":"上海虹桥","code":"002","isHot":false,"category":"大的大","createdDatetime":1497252123000,"updatedDatetime":1497252123000,"airportService":true,"charterFlight":false,"status":"0","vipAirportDropOff":"的的","vvipAirportDropOff":"都是","vipAirportPickup":"都是","vvipAirportPickup":"都是"}]}
     * message : 获取成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        private List<AirportsBean> airports;

        public List<AirportsBean> getAirports() {
            return airports;
        }

        public void setAirports(List<AirportsBean> airports) {
            this.airports = airports;
        }

        public static class AirportsBean implements Parcelable {
            /**
             * sid : 5d2e8301282545c08e157ef2b428f241
             * id : 5d2e8301282545c08e157ef2b428f241
             * city : 上海
             * name : 上海虹桥
             * code : 002
             * isHot : false
             * category : 大的大
             * createdDatetime : 1497252123000
             * updatedDatetime : 1497252123000
             * airportService : true
             * charterFlight : false
             * status : 0
             * vipAirportDropOff : 的的
             * vvipAirportDropOff : 都是
             * vipAirportPickup : 都是
             * vvipAirportPickup : 都是
             */

            private String sid;
            private String id;
            private String city;
            private String name;
            private String code;
            private Boolean isHot;
            private String category;
            private long createdDatetime;
            private long updatedDatetime;
            private Boolean airportService;
            private Boolean charterFlight;
            private String status;
            private String vipAirportDropOff;
            private String vvipAirportDropOff;
            private String vipAirportPickup;
            private String vvipAirportPickup;

            public String getSid() {
                return sid;
            }

            public void setSid(String sid) {
                this.sid = sid;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public Boolean isIsHot() {
                return isHot;
            }

            public void setIsHot(Boolean isHot) {
                this.isHot = isHot;
            }

            public String getCategory() {
                return category;
            }

            public void setCategory(String category) {
                this.category = category;
            }

            public long getCreatedDatetime() {
                return createdDatetime;
            }

            public void setCreatedDatetime(long createdDatetime) {
                this.createdDatetime = createdDatetime;
            }

            public long getUpdatedDatetime() {
                return updatedDatetime;
            }

            public void setUpdatedDatetime(long updatedDatetime) {
                this.updatedDatetime = updatedDatetime;
            }

            public Boolean isAirportService() {
                return airportService;
            }

            public void setAirportService(Boolean airportService) {
                this.airportService = airportService;
            }

            public Boolean isCharterFlight() {
                return charterFlight;
            }

            public void setCharterFlight(Boolean charterFlight) {
                this.charterFlight = charterFlight;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getVipAirportDropOff() {
                return vipAirportDropOff;
            }

            public void setVipAirportDropOff(String vipAirportDropOff) {
                this.vipAirportDropOff = vipAirportDropOff;
            }

            public String getVvipAirportDropOff() {
                return vvipAirportDropOff;
            }

            public void setVvipAirportDropOff(String vvipAirportDropOff) {
                this.vvipAirportDropOff = vvipAirportDropOff;
            }

            public String getVipAirportPickup() {
                return vipAirportPickup;
            }

            public void setVipAirportPickup(String vipAirportPickup) {
                this.vipAirportPickup = vipAirportPickup;
            }

            public String getVvipAirportPickup() {
                return vvipAirportPickup;
            }

            public void setVvipAirportPickup(String vvipAirportPickup) {
                this.vvipAirportPickup = vvipAirportPickup;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.sid);
                dest.writeString(this.id);
                dest.writeString(this.city);
                dest.writeString(this.name);
                dest.writeString(this.code);
                dest.writeValue(this.isHot);
                dest.writeString(this.category);
                dest.writeLong(this.createdDatetime);
                dest.writeLong(this.updatedDatetime);
                dest.writeValue(this.airportService);
                dest.writeValue(this.charterFlight);
                dest.writeString(this.status);
                dest.writeString(this.vipAirportDropOff);
                dest.writeString(this.vvipAirportDropOff);
                dest.writeString(this.vipAirportPickup);
                dest.writeString(this.vvipAirportPickup);
            }

            public AirportsBean() {
            }

            protected AirportsBean(Parcel in) {
                this.sid = in.readString();
                this.id = in.readString();
                this.city = in.readString();
                this.name = in.readString();
                this.code = in.readString();
                this.isHot = (Boolean) in.readValue(Boolean.class.getClassLoader());
                this.category = in.readString();
                this.createdDatetime = in.readLong();
                this.updatedDatetime = in.readLong();
                this.airportService = (Boolean) in.readValue(Boolean.class.getClassLoader());
                this.charterFlight = (Boolean) in.readValue(Boolean.class.getClassLoader());
                this.status = in.readString();
                this.vipAirportDropOff = in.readString();
                this.vvipAirportDropOff = in.readString();
                this.vipAirportPickup = in.readString();
                this.vvipAirportPickup = in.readString();
            }

            public static final Parcelable.Creator<AirportsBean> CREATOR = new Parcelable.Creator<AirportsBean>() {
                @Override
                public AirportsBean createFromParcel(Parcel source) {
                    return new AirportsBean(source);
                }

                @Override
                public AirportsBean[] newArray(int size) {
                    return new AirportsBean[size];
                }
            };
        }
    }
}
